package com.mangabiz.market.dao.hibernate;

// Start of user code for import
import javax.inject.Named;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.mangabiz.market.dao.ICategoryDao;
import com.mangabiz.market.entities.Category;


// End of user code for import

/**
 * Implementation of DAO interface ICategoryDao based on the hibernate
 * persistence framework.
 * 
 * @see com.mangabiz.market.dao.ICategoryDao
 */
//@Repository("categoryDao")
@Named("categoryDao")
public class HibernateCategoryDao extends AbstractHibernateDao<Category, Long>
		implements ICategoryDao {


	/**
	 * The logger of this class.
	 */
	private static final Log LOG = LogFactory
			.getLog(HibernateCategoryDao.class);


	@Autowired
	public HibernateCategoryDao(SessionFactory sessionFactory) {
		setSessionFactory(sessionFactory);
	}

	// Start of user code
	// End of user code
}
